/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
using System;
using System.Collections.Generic;

using Aliyun.Acs.Core.Transform;
using Aliyun.Acs.polardbx.Model.V20200202;

namespace Aliyun.Acs.polardbx.Transform.V20200202
{
    public class DescribeColdDataBasicInfoResponseUnmarshaller
    {
        public static DescribeColdDataBasicInfoResponse Unmarshall(UnmarshallerContext _ctx)
        {
			DescribeColdDataBasicInfoResponse describeColdDataBasicInfoResponse = new DescribeColdDataBasicInfoResponse();

			describeColdDataBasicInfoResponse.HttpResponse = _ctx.HttpResponse;
			describeColdDataBasicInfoResponse.RequestId = _ctx.StringValue("DescribeColdDataBasicInfo.RequestId");

			DescribeColdDataBasicInfoResponse.DescribeColdDataBasicInfo_Data data = new DescribeColdDataBasicInfoResponse.DescribeColdDataBasicInfo_Data();
			data.EnableStatus = _ctx.BooleanValue("DescribeColdDataBasicInfo.Data.EnableStatus");
			data.CloudProduct = _ctx.StringValue("DescribeColdDataBasicInfo.Data.CloudProduct");
			data.VolumeName = _ctx.StringValue("DescribeColdDataBasicInfo.Data.VolumeName");
			data.BackupSetSpaceSize = _ctx.DoubleValue("DescribeColdDataBasicInfo.Data.BackupSetSpaceSize");
			data.BackupSetCount = _ctx.IntegerValue("DescribeColdDataBasicInfo.Data.BackupSetCount");
			data.CurrentSpaceSize = _ctx.DoubleValue("DescribeColdDataBasicInfo.Data.CurrentSpaceSize");
			data.DataRedundancyType = _ctx.StringValue("DescribeColdDataBasicInfo.Data.DataRedundancyType");
			data.WriteAccessNum = _ctx.DoubleValue("DescribeColdDataBasicInfo.Data.WriteAccessNum");
			data.ReadAccessNum = _ctx.LongValue("DescribeColdDataBasicInfo.Data.ReadAccessNum");
			data.RegionId = _ctx.StringValue("DescribeColdDataBasicInfo.Data.RegionId");
			describeColdDataBasicInfoResponse.Data = data;
        
			return describeColdDataBasicInfoResponse;
        }
    }
}
